import http from './index'
// interface httpPorps {
//     usr:string,
//     method:string,
//     data:any
// }
//服务项目请求列表数据
export const  serviceApi:any = (data:object) =>{
    return  http({
        url:'/storefront/service/list',
        method:"POST",
        data:data
    })
}
//删除
export const  delApi:any = (data:object) =>{
    return  http({
        url:'/storefront/service/del',
        method:"POST",
        data:data
    })
}

//新增服务
export const  addApi:any = (data:object) =>{
    return  http({
        url:'/storefront/service/add',
        method:"POST",
        data:data
    })
}

//编辑服务
export const  editApi:any = (data:object) =>{
    return  http({
        url:'/storefront/service/edit',
        method:"POST",
        data:data
    })
}

//查看服务详情
export const  detailsApi:any = (data:object) =>{
    return  http({
        url:'/storefront/service/details',
        method:"POST",
        data:data
    })
}